Repository navigation
Add option for Escape to close the viewer - #97
Open
Omegadarling wants to merge 1 commit into
Open
Omegadarling wants to merge 1 commit into
Omegadarling wants to merge 1 commit into
Conversation
Pressing Escape now closes the viewer when Escape has nothing else to do. The existing Escape behaviour keeps priority, in this order: cancelling the current action, leaving fullscreen, then any command bound to Escape. Key repeats are ignored, so holding Escape to leave fullscreen does not also close the viewer. The option is on by default and can be turned off in Options > Controls > "Escape key closes the viewer" (ini: escape_closes). Notes for merging: - master does not build until one of the open build-fix pull requests (88 or 95) lands. The new control ID is 1067 so it does not collide with the IDs those add (1055-1066). The companion "zoom out past best fit" pull request uses 1068. - res/voidImageViewer.rc will conflict with 88/95 in IDD_CONTROLS, because they rename the IDs on the lines this change moves down. The right resolution keeps their IDs (IDC_COMMANDS_STATIC, the *_COMBOBOX names and so on) with this change's positions: the checkbox at 0,53, "&Commands:" at 0,70 and the command list at 0,81,193,61. Taking their side whole drops the checkbox, which silently turns the option off every time Options is closed with OK. I'm happy to rebase once a build fix is merged. - The Chinese label is a best-effort translation and may need a native speaker's review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pressing Escape now closes the viewer when Escape has nothing else to do. The existing Escape behaviour keeps priority, in this order: cancelling the current action, leaving fullscreen, then any command bound to Escape. Key repeats are ignored, so holding Escape to leave fullscreen does not also close the viewer.
The option is on by default and can be turned off in Options > Controls > "Escape key closes the viewer" (ini:
escape_closes).Notes for merging
res/voidImageViewer.rcwill conflict with 88/95 inIDD_CONTROLS, because they rename the IDs on the lines this change moves down. The right resolution keeps their IDs (IDC_COMMANDS_STATIC, the*_COMBOBOXnames and so on) with this change's positions: the checkbox at 0,53, "&Commands:" at 0,70 and the command list at 0,81,193,61. Taking their side whole drops the checkbox, which silently turns the option off every time Options is closed with OK. I'm happy to rebase once a build fix is merged.🤖 Generated with Claude Code